package autopecas.Dados;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author NeGo
 */
public class DadosConexao {
    
    
    
    public Connection conectarMysql() throws SQLException{
                    
        String url = "jdbc:mysql://localhost/java";
        
        Connection conn = DriverManager.getConnection(url, "javauser", "java123");
        
        return conn;
    }
}
